﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="detail.aspx.vb" Inherits="stocks.detail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
    </p>
    <p>
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
            CellPadding="4" DataKeyNames="ID" DataSourceID="SqlDataSource1" 
            ForeColor="Black" GridLines="Horizontal">
            <Columns>
                <asp:ImageField DataAlternateTextField="Logo" DataImageUrlField="Logo">
                    <ControlStyle CssClass="companyLogo" />
                </asp:ImageField>
                <asp:BoundField DataField="CompanyName" HeaderText="Company" 
                    SortExpression="CompanyName" />
                <asp:BoundField DataField="PriceAtThesis" HeaderText="Price at Thesis" 
                    SortExpression="PriceAtThesis" />
                <asp:BoundField DataField="Direction" HeaderText="Direction" 
                    SortExpression="Direction" />
                <asp:BoundField DataField="Thesis" HeaderText="Thesis" SortExpression="Thesis">
                </asp:BoundField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F7F7F7" />
            <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
            <SortedDescendingCellStyle BackColor="#E5E5E5" />
            <SortedDescendingHeaderStyle BackColor="#242121" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:StocksConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:StocksConnectionString.ProviderName %>" 
            SelectCommand="SELECT [CompanyName], [Logo], [PriceAtThesis], [Thesis], [Direction], [ID] FROM [Stocks] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
